package com.suliao.common.base;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author ：M1nG
 * @date ：Created in 2021/1/4 15:48
 * @description：
 * @version: 1.0
 */
public interface BaseChannel  {//extends Processor 加上suliao命名空间

    String OUTPUT = "suliao-output";

    @Output(OUTPUT)
    MessageChannel output();

    String INPUT = "suliao-input";

    @Input(INPUT)
    SubscribableChannel input();

}
